package users;

import book.BookList;
import operations.IOperation;

/**
 * Created with IntelliJ IDEA
 * Description:使用者----父类
 * User:22954
 * Date:2024-01-12
 * Time:20:32
 */
public abstract class User {
    private String name;
    IOperation[] iOperations;

    public String getName() {
        return name;
    }

    public User(String name) {
        this.name = name;
    }

    public abstract int menu();

    public void doOperation(int choice, BookList bookList) {
        iOperations[choice].work(bookList);
    }
}
